package com.wxzz.elearing.evaluation.api.server;

import com.wxzz.elearing.evaluation.service.IBusinessCategoryRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/businessCategory-rule-api")
public class BusinessCategoryRuleApi {

    @Autowired
    private IBusinessCategoryRuleService businessCategoryRuleService;

    /**
     * 查询用户最高的星级认证星级
     * @param wxUserId
     * @return
     */
    @RequestMapping(value = "selectWxUserStart/{wxUserId}", method = RequestMethod.POST)
    public Integer selectWxUserStart(@PathVariable Long wxUserId) {
        return businessCategoryRuleService.selectWxUserStart(wxUserId);
    }

    /**
     * 根据微信用户id查询最高星级
     * @param wxUserId
     * @return
     */
//    @RequestMapping(value = "selectTopStarByWxUserId/{wxUserId}", method = RequestMethod.POST)
//    public Integer selectTopStarByWxUserId(@PathVariable Long wxUserId) {
//        return businessCategoryRuleService.selectTopStarByWxUserId(wxUserId);
//    }
}
